package com.wanye.enums;

/**
 * Created by wanye on 2017/9/24.
 */
public enum ResultEnum {
    SUCCESS(0, "成功"),
    UNKONWN_ERROR(-1, "未知错误"),
    PARAMS_ERROR(1,"参数错误");

    private Integer code;
    private String msg;

    ResultEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}
